package com.rjkj.medicalwaste.bean

import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(indices = [Index(value = ["garbageBoxQRCode"],unique = true)])
data class BoxBean(
        @PrimaryKey(autoGenerate = true) var id: Int = 0,
        var garbageBoxQRCode: String = "", //箱子二维码
        var stagingRoomQRCode:String = "",//暂存间二维码
        var stagingRoomName:String = "",//暂存间姓名
        var cleanerQRCode: String = "", //清理工二维码
        var cleanerName: String = "", //清理工姓名
        var garbageBoxDeviceSN: String = "", //小推车平板设备号
        var garbageBoxPosition: String = "", //箱子位置
        var garbageBoxType: String = "", //垃圾种类
        var garbageBoxWeight: String = "", //箱子重量
        var garbageCNT: Int = 0, //垃圾袋数量
        var garbageBoxStatus: String = BoxStatus.working,//箱子状态
        var garbageBoxChangePlace: String = "0",//箱子状态变更地
        var garbageBoxChangeTime: String  = "0000-00-00 00:00:00", //箱子状态变更时间
        var garbageBoxTime: String  = "0000-00-00 00:00:00", //箱子回收时间
        var handoverQRCode: String = "", //回收公司人员二维码
        @Ignore
        var myCheck:Boolean = false
)
